StockExchImbalance
StockExchImbalance records contain live exchange closing auction imbalance details. Imbalance information can be available from more than one exchange for each ticker. Final StockExchImbalance records are published to the SpiderRock elastic cluster nightly after the auction close.
METADATA
Attribute | Value |
---|---|
Topic | 2990-market-data-stock |
MLink Token | ClientLive |
Product | SRLive |
accessType | SELECT |
Table Definition
Field | Type | Key | Default Value | Comment |
---|---|---|---|---|
ticker_at | enum - AssetType | PRI | 'None' | |
ticker_ts | enum - TickerSrc | PRI | 'None' | |
ticker_tk | VARCHAR(12) | PRI | '' | |
auctionTime | DATETIME(6) | PRI | '1900-01-01 00:00:00.000000' | Projected Auction Time hhmm |
auctionType | enum - AuctionReason | PRI | 'None' | Auction type None Open Market Halt Closing RegulatoryImbalance |
exchange | enum - PrimaryExchange | PRI | 'None' | |
referencePx | FLOAT | 0 | For Pillarpowered markets the Reference Price is used to calculate the Indicative Match Price | |
pairedQty | INT | 0 | For Pillarpowered markets the number of shares paired off at the Indicative Match Price | |
totalImbalanceQty | INT | 0 | For Pillarpowered markets the total imbalance quantity at the Indicative Match Price If the value is negative the imbalance is on the sell side if the value is positive the imbalance is on the buy side | |
marketImbalanceQty | INT | 0 | For Pillarpowered markets the total market order imbalance quantity at the Indicative Match Price If the value is negative the imbalance is on the sell side if the value is positive the imbalance is on the buy side | |
imbalanceSide | enum - ImbalanceSide | 'None' | The side of the TotalImbalanceQty | |
continuousBookClrPx | FLOAT | 0 | For Pillarpowered markets the price at which all interest on the book can trade including auction and imbalance offset interest and disregarding auction collars | |
closingOnlyClrPx | FLOAT | 0 | For Pillarpowered markets the price at which all eligible auctiononly interest would trade subject to auction collars | |
ssrFillingPx | FLOAT | 0 | For Pillarpowered markets not supported and defaulted to 0 | |
indicativeMatchPx | FLOAT | 0 | For Pillarpowered markets the price that has the highest executable volume of auctioneligible shares subject to auction collars It includes the nondisplayed quantity of Reserve Orders | |
upperCollar | FLOAT | 0 | If the IndicativeMatchPrice is not strictly between the UpperCollar and the LowerCollar special auction rules apply See Rule 735P for details | |
lowerCollar | FLOAT | 0 | If the IndicativeMatchPrice is not strictly between the UpperCollar and the LowerCollar special auction rules apply See Rule 735P for details | |
auctionStatus | enum - AuctionStatus | 'None' | Indicates whether the auction will run | |
freezeStatus | enum - YesNo | 'None' | Indicates freeze | |
numExtensions | TINYINT UNSIGNED | 0 | Number of times the halt period has been extended | |
sourceTime | DATETIME(6) | '1900-01-01 00:00:00.000000' | Time record was generated in the order book in seconds | |
netTimestamp | BIGINT | 0 | PTP timestamp |
PRIMARY KEY DEFINITION (Unique)
Field | Sequence |
---|---|
ticker_tk | 1 |
ticker_at | 2 |
ticker_ts | 3 |
auctionTime | 4 |
auctionType | 5 |
exchange | 6 |
CREATE TABLE EXAMPLE QUERY
CREATE TABLE `SRLive`.`MsgStockExchImbalance` (
`ticker_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None',
`ticker_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None',
`ticker_tk` VARCHAR(12) NOT NULL DEFAULT '',
`auctionTime` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000' COMMENT 'Projected Auction Time (hhmm).',
`auctionType` ENUM('None','Open','Market','Halt','Closing','RegulatoryImbalance') NOT NULL DEFAULT 'None' COMMENT 'Auction type: None; Open; Market; Halt; Closing; RegulatoryImbalance',
`exchange` ENUM('None','NYSE','NYSEArca','NYSEMkt','NASDAQ','NASDAQBOS','BATS','PHLX','IEXG','CSE','NSE','FINRA','PORTAL','OTC','CME','CBOT','NYMEX','COMEX','ICE','EUREX','XETRA','CDEX','BXE','CXE','DXE','LSE','NXAM','NXBR','NXLS','NXML','NXOS','NXP') NOT NULL DEFAULT 'None',
`referencePx` FLOAT NOT NULL DEFAULT 0 COMMENT 'For Pillar-powered markets, the Reference Price is used to calculate the Indicative Match Price.',
`pairedQty` INT NOT NULL DEFAULT 0 COMMENT 'For Pillar-powered markets, the number of shares paired off at the Indicative Match Price.',
`totalImbalanceQty` INT NOT NULL DEFAULT 0 COMMENT 'For Pillar-powered markets, the total imbalance quantity at the Indicative Match Price. If the value is negative, the imbalance is on the sell side; if the value is positive, the imbalance is on the buy side.',
`marketImbalanceQty` INT NOT NULL DEFAULT 0 COMMENT 'For Pillar-powered markets, the total market order imbalance quantity at the Indicative Match Price. If the value is negative, the imbalance is on the sell side; if the value is positive the imbalance is on the buy side.',
`imbalanceSide` ENUM('None','Buy','Sell','NoImbalance','InsufOrdsToCalc') NOT NULL DEFAULT 'None' COMMENT 'The side of the TotalImbalanceQty.',
`continuousBookClrPx` FLOAT NOT NULL DEFAULT 0 COMMENT 'For Pillar-powered markets, the price at which all interest on the book can trade, including auction and imbalance offset interest, and disregarding auction collars.',
`closingOnlyClrPx` FLOAT NOT NULL DEFAULT 0 COMMENT 'For Pillar-powered markets, the price at which all eligible auction-only interest would trade, subject to auction collars.',
`ssrFillingPx` FLOAT NOT NULL DEFAULT 0 COMMENT 'For Pillar-powered markets, not supported and defaulted to 0.',
`indicativeMatchPx` FLOAT NOT NULL DEFAULT 0 COMMENT 'For Pillar-powered markets, the price that has the highest executable volume of auction-eligible shares, subject to auction collars. It includes the non-displayed quantity of Reserve Orders.',
`upperCollar` FLOAT NOT NULL DEFAULT 0 COMMENT 'If the IndicativeMatchPrice is not strictly between the UpperCollar and the LowerCollar, special auction rules apply. See Rule 7.35P for details.',
`lowerCollar` FLOAT NOT NULL DEFAULT 0 COMMENT 'If the IndicativeMatchPrice is not strictly between the UpperCollar and the LowerCollar, special auction rules apply. See Rule 7.35P for details.',
`auctionStatus` ENUM('None','WillRunOpenAndClose','WillRunInterest','WillNotRunImbalance','WillNotRunClsAuction') NOT NULL DEFAULT 'None' COMMENT 'Indicates whether the auction will run.',
`freezeStatus` ENUM('None','Yes','No') NOT NULL DEFAULT 'None' COMMENT 'Indicates freeze',
`numExtensions` TINYINT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Number of times the halt period has been extended.',
`sourceTime` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000' COMMENT 'Time record was generated in the order book (in seconds)',
`netTimestamp` BIGINT NOT NULL DEFAULT 0 COMMENT 'PTP timestamp',
PRIMARY KEY USING HASH (`ticker_tk`,`ticker_at`,`ticker_ts`,`auctionTime`,`auctionType`,`exchange`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='StockExchImbalance records contain live exchange closing auction imbalance details. Imbalance information can be available from more than one exchange for each ticker.\nFinal StockExchImbalance records are published to the SpiderRock elastic cluster nightly after the auction close.';
SELECT TABLE EXAMPLE QUERY
SELECT
`ticker_at`,
`ticker_ts`,
`ticker_tk`,
`auctionTime`,
`auctionType`,
`exchange`,
`referencePx`,
`pairedQty`,
`totalImbalanceQty`,
`marketImbalanceQty`,
`imbalanceSide`,
`continuousBookClrPx`,
`closingOnlyClrPx`,
`ssrFillingPx`,
`indicativeMatchPx`,
`upperCollar`,
`lowerCollar`,
`auctionStatus`,
`freezeStatus`,
`numExtensions`,
`sourceTime`,
`netTimestamp`
FROM `SRLive`.`MsgStockExchImbalance`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') */
`ticker_at` = 'None'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') */
`ticker_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`ticker_tk` = 'Example_ticker_tk'
AND
/* Replace with a DATETIME(6) */
`auctionTime` = '2022-01-01 12:34:56.000000'
AND
/* Replace with a ENUM('None','Open','Market','Halt','Closing','RegulatoryImbalance') */
`auctionType` = 'None'
AND
/* Replace with a ENUM('None','NYSE','NYSEArca','NYSEMkt','NASDAQ','NASDAQBOS','BATS','PHLX','IEXG','CSE','NSE','FINRA','PORTAL','OTC','CME','CBOT','NYMEX','COMEX','ICE','EUREX','XETRA','CDEX','BXE','CXE','DXE','LSE','NXAM','NXBR','NXLS','NXML','NXOS','NXP') */
`exchange` = 'None';
Doc Columns Query
SELECT * FROM SRLive.doccolumns WHERE TABLE_NAME='StockExchImbalance' ORDER BY ordinal_position ASC;